package com.dlc.shop.poly.common.service.impl;

import com.linchuang.seneca.response.PolyMallGetOrderTraceResponse;
import com.dlc.shop.common.poly.PolyRouteorderMp;
import com.dlc.shop.config.ShopConfig;
import com.dlc.shop.poly.common.service.PolyMallGetOrderTraceService;
import com.linchuang.seneca.request.PolyMallCommonGetOrderTraceRequest;
import com.dlc.shop.poly.common.utils.SentURL;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@AllArgsConstructor
public class PolyMallGetOrderTraceServiceImpl  implements PolyMallGetOrderTraceService {

    private final ShopConfig shopConfig;

    @Override
    public PolyMallGetOrderTraceResponse getGetOrderTrace(PolyMallCommonGetOrderTraceRequest polyMallCommonGetOrderTraceRequest) {
        PolyRouteorderMp polyRouteorder = shopConfig.getPolyRouteorder();

         return SentURL.httpURLConnectionPOST(polyRouteorder,polyMallCommonGetOrderTraceRequest);

    }

    //
}
